<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Event
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Upload.php 7244 2010-09-01 01:49:53Z john $
 * @author     John
 */

/**
 * @category   Application_Extensions
 * @package    Event
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Event_Form_Photo_Upload extends Engine_Form {
	public function init() {
		// Init form
		$this->setTitle ( 'Add New Photos' )->setDescription ( 'Choose photos on your computer to add to this album. (2MB maximum)' )->setAttrib ( 'id', 'form-upload' )->setAttrib ( 'class', 'global_form event_form_upload' )->setAttrib ( 'name', 'albums_create' )->setAttrib ( 'enctype', 'multipart/form-data' )->setAction ( Zend_Controller_Front::getInstance ()->getRouter ()->assemble ( array () ) );
		
		$this->addElement ( 'FancyUpload', 'file' );
		
		/*
    $this->addElement('Hidden', 'file', array(
      'decorators' => array(
        array('ViewScript', array(
          'viewScript' => '_formUpload.tpl',
        ))
      )
    ));
    self::addDefaultDecorators($this->file);
    */
		
		// Init submit
		$this->addElement ( 'Button', 'submit', array ('label' => 'Save Photos', 'type' => 'submit' ) );
	}
}